package com.csun.cmny.provider.pojo;
//import com.csun.cmny.core.mybatis.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
//import lombok.EqualsAndHashCode;
//import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

@Data
// @Alias(value = "chonogmingDoctorWorkTemperature")
@Table(name = "cn_omc_chongming_dwr_temperature")
//@EqualsAndHashCode(callSuper = true)
public class ChongmingDoctorWorkTemperature {

    /**
     * 老人体温记录ID
     */
    @Column(name = "temperature_id")
    private Long temperatureId;

    /**
     * 设备ID
     */
    @Column(name = "device_id")
    private String deviceId;

    /**
     * 老人姓名
     */
    @Column(name = "oldman_name")
    private String oldmanName;

    /**
     * 老人ID
     */
    @Column(name = "oldman_id")
    private String oldmanId;

    /**
     * 老人性别 0-男 1-女
     */
    @Column(name = "oldman_sex")
    private String oldmanSex;

    /**
     * 老人年龄
     */
    @Column(name = "oldman_age")
    private String oldmanAge;

    /**
     * 护理等级
     */
    @Column(name = "nursing_grade")
    private String nursingGrade;

    /**
     * 楼栋
     */
    @Column(name = "building_no")
    private String buildingNo;

    /**
     * 楼栋ID
     */
    @Column(name = "building_id")
    private String buildingId;

    /**
     * 房间号
     */
    @Column(name = "room_no")
    private String roomNo;

    /**
     * 房间ID
     */
    @Column(name = "room_id")
    private String roomId;

    /**
     * 床号
     */
    @Column(name = "bed_no")
    private String bedNo;

    /**
     *床位ID
     */
    @Column(name = "bed_id")
    private String bedId;

    /**
     * 测量时间
     */
    @Column(name = "detection_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date detectionTime;

    /**
     * 体温
     */
    @Column(name = "body_temperature")
    private String bodyTemperature;

    /**
     * 测量医生
     */
    @Column(name = "doctor")
    private String doctor;

    /**
     * 医生ID
     */
    @Column(name = "doctor_id")
    private String doctorId;
}
